﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///GuestBookSetting 的摘要说明
/// </summary>
public class GuestBookSetting:ConfigBase
{
    private const string ConfigName = "GuestBookSetting";
    public GuestBookSetting()
        : base(ConfigName)
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    /// <summary>
    /// 每页显示数量
    /// </summary>
    public int PageSize
    {
        get
        {
            try { return Convert.ToInt32(this.Elem.SelectSingleNode("PageSize").InnerText); }
            catch { return 0; }
        }
        set
        {
            this.Elem.SelectSingleNode("PageSize").InnerText = value.ToString();
        }
    }
    /// <summary>
    /// 回复间隔
    /// </summary>
    public int VTime
    {
        get
        {
            try { return Convert.ToInt32(this.Elem.SelectSingleNode("VTime").InnerText); }
            catch { return 0; }
        }
        set
        {
            this.Elem.SelectSingleNode("VTime").InnerText = value.ToString();
        }
    }
    /// <summary>
    /// 是否回复显示
    /// </summary>
    public int Ireplay
    {
        get
        {
            try { return Convert.ToInt32(this.Elem.SelectSingleNode("Ireplay").InnerText); }
            catch { return 0; }
        }
        set
        {
            this.Elem.SelectSingleNode("Ireplay").InnerText = value.ToString();
        }
    }
    /// <summary>
    /// ForbidIP
    /// </summary>
    public string ForbidIP
    {
        get
        {
            try { return this.Elem.SelectSingleNode("ForbidIP").InnerText; }
            catch { return string.Empty; }
        }
        set
        {
            this.Elem.SelectSingleNode("ForbidIP").InnerText = value;
        }
    } 

}